<extend name="Public/base"/>
<block name="content">
    <div class="row-fluid">
        <div class="block">
            <div class="navbar navbar-inner block-header">
                <div class="muted pull-left">科技申请列表</div>
            </div>
            <div class="block-content collapse in">
                <div class="span12">
                    <empty name="list">
                        对不起，暂时没有查询到您所查询的数据
                        <else/>
                        <table cellpadding="0" cellspacing="0" border="0" class="table">
                            <thead>
                            <tr>
                                <th>id</th>
                                <th>任务标题</th>
                                <th>任务状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <volist name="list" id="vo">
                                <tr class="odd gradeX">
                                    <td>{$vo.id}</td>
                                    <td>{$vo.kjcxid|getNameByTaskId}</td>
                                    <td>
                                        <switch name="vo.status">
                                            <case value="1">发布中</case>
                                            <case value="2">处理中</case>
                                            <case value="3">处理完成</case>
                                        </switch>
                                    </td>
                                    <td class="center">
                                        <if condition="$vo['status'] eq 1">
                                            <a href="{:U('edit',array('id'=>$vo['id']))}">接收</a>
                                            <elseif condition="$vo['status'] eq 2"/><a href="{:U('call',array('id'=>$vo['id']))}">指派</a><a href="{:U('callback',array('id'=>$vo['id']))}">撤销任务</a>
                                            <else/>暂无操作
                                        </if>
                                    </td>
                                </tr>
                            </volist>
                            </tbody>
                            {$_page}
                        </table>
                    </empty>
                </div>
            </div>
        </div>
    </div>
</block>